<template>
	<view class="example">
		<view class="title">固定左边一列</view>
		<v-table :columns="columns" :list="data" selection="single"></v-table>
	</view>
</template>

<script>
	import vTable from "@/components/no-bad-table/table.vue"
	export default{
		components: {
			vTable
		},
		data(){
			return {
				data: [
					{
						name: 'TB_VWG_33062A_V2',
						age1: 'HFSDJFHSKDF238975495HFSDJFHSKDF2389754953845',
						age3: 1000000.55,
						age4: '千克',
						age5: 'A14-123'
					},
					{
						name: 'TB_VWG_33062A_V2',
						age1: 'HFSDJFHSKDF238975495HFSDJFHSKDF2389754953845',
						age3: 1000000.55,
						age4: '千克',
						age5: 'A14-123'
					},
					{
						name: 'TB_VWG_33062A_V2',
						age1: 'HFSDJFHSKDF238975495HFSDJFHSKDF2389754953845',
						age3: 1000000.55,
						age4: '千克',
						age5: 'A14-123'
					},
					{
						name: 'TB_VWG_33062A_V2',
						age1: 'HFSDJFHSKDF238975495HFSDJFHSKDF2389754953845',
						age3: 1000000.55,
						age4: '千克',
						age5: 'A14-123'
					},
					{
						name: 'TB_VWG_33062A_V2',
						age1: 'HFSDJFHSKDF238975495HFSDJFHSKDF2389754953845',
						age3: 1000000.55,
						age4: '千克',
						age5: 'A14-123'
					},
					{
						name: 'TB_VWG_33062A_V2',
						age1: 'HFSDJFHSKDF238975495HFSDJFHSKDF2389754953845',
						age3: 1000000.55,
						age4: '千克',
						age5: 'A14-123'
					},
					{
						name: 'TB_VWG_33062A_V2',
						age1: 'HFSDJFHSKDF238975495HFSDJFHSKDF2389754953845',
						age3: 1000000.55,
						age4: '千克',
						age5: 'A14-123'
					},
					{
						name: 'TB_VWG_33062A_V2',
						age1: 'HFSDJFHSKDF238975495HFSDJFHSKDF2389754953845',
						age3: 1000000.55,
						age4: '千克',
						age5: 'A14-123'
					},
					{
						name: 'TB_VWG_33062A_V2',
						age1: 'HFSDJFHSKDF238975495HFSDJFHSKDF2389754953845',
						age3: 1000000.55,
						age4: '千克',
						age5: 'A14-123'
					},
					{
						name: 'TB_VWG_33062A_V2',
						age1: 'HFSDJFHSKDF238975495HFSDJFHSKDF2389754953845',
						age3: 1000000.55,
						age4: '千克',
						age5: 'A14-123'
					},
					{
						name: 'TB_VWG_33062A_V2',
						age1: 'HFSDJFHSKDF238975495HFSDJFHSKDF2389754953845',
						age3: 1000000.55,
						age4: '千克',
						age5: 'A14-123'
					},
					{
						name: 'TB_VWG_33062A_V2',
						age1: 'HFSDJFHSKDF238975495HFSDJFHSKDF2389754953845',
						age3: 1000000.55,
						age4: '千克',
						age5: 'A14-123'
					},
					{
						name: 'TB_VWG_33062A_V2',
						age1: 'HFSDJFHSKDF238975495HFSDJFHSKDF2389754953845',
						age3: 1000000.55,
						age4: '千克',
						age5: 'A14-123'
					},
					{
						name: 'TB_VWG_33062A_V2',
						age1: 'HFSDJFHSKDF238975495HFSDJFHSKDF2389754953845',
						age3: 1000000.55,
						age4: '千克',
						age5: 'A14-123'
					},
					{
						name: 'TB_VWG_33062A_V2',
						age1: 'HFSDJFHSKDF238975495HFSDJFHSKDF2389754953845',
						age3: 1000000.55,
						age4: '千克',
						age5: 'A14-123'
					}
				],
				columns: [{
						title: "存货编码",
						key: "name",
						$width:"150px"
					},
					{
						title: '存货名称',
						key: 'age1'
					},
					{
						title: '数量',
						key: 'age3'
					},
					{
						title: '货位',
						key: 'age4'
					},
					{
						title: '单位',
						key: 'age5'
					},
				],
			}
		}
		
	}
</script>

<style>
</style>
